import { defineStore } from "pinia";
import { shallowRef, reactive } from "vue";
import { StaffApi } from "@/api";

export default defineStore("staff", () => {
    const dictionaryList = shallowRef<Vm.Dictionary[]>([]);
    const staffList = reactive<Vm.Staff[]>([]);
   

    const getDictionary = async () => {
        dictionaryList.value = await StaffApi.getDictionary();
    };

    return { getDictionary, dictionaryList,  staffList }
})